package com.example.proyyj.Service;


import com.example.proyyj.Entity.Newss;
import com.example.proyyj.Impl.NewssImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewssService  implements NewssImpl {

    @Resource
    NewssImpl newss;
    @Override
    public List<Newss>  getNewssList() {
        return newss.getNewssList();
    }

    @Override
    public int getUserCount() {
        return newss.getUserCount();
    }

    @Override
    public Newss getNewssId(int id) {
        return newss.getNewssId(id);
    }


}
